package com.cloud.example.business.async.controller;

import com.cloud.example.business.async.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 *  默认测试接口
 * @author chengrui
 */
@RequestMapping("/api/async")
@RestController
public class AsyncController {

    @Autowired
    AsyncService asyncService;

    @GetMapping("/test")
    public String createSubjectTask() {
        String ret = asyncService.testAsync();
        return ret;
    }
}
